import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta:{
      istrue:true
    }
  },
  {
    path: '/classify',
    name: 'Classify',
    component: () => import('../views/classify.vue'),
    meta:{
      istrue:true
    }
  },
  {
    path:"/classifys_pdf",
    name:'classifys_pdf',
    component: () => import('../views/classifys_pdf.vue'),
    meta:{
      istrue:true
    }
  },
  {
    path:"/classifys_md",
    name: 'classifys_md',
    component: () => import('../views/classifys_md.vue'),
    meta:{
      istrue:true
    }
  },
  {
    path: '/blogger',
    name: 'Blogger',
    component: () => import('../views/classifys_pdf.vue'),
    meta:{
      istrue:true
    }
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../views/my.vue'),
    meta:{
      istrue:true
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login.vue'),
    meta:{
      istrue:false
    }
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../views/user.vue'),
    meta:{
      istrue:false
    }
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
